import { getSpecslist } from '@/request/shoptions'
export default {
    namespaced: true,  //命名空间
    state() {
        return {
            specslist: []  //分类列表初始化数据
        }
    },
    getters: {
        getSplist: state => state.specslist
    },
    mutations: {
        SPECSLIST(state, data) {
            state.specslist = data
        }
    },
    actions: {
        async getSpecslist(stroe, data) {
            // console.log(data);
            let rst = await getSpecslist(data)
            // console.log(rst);
            stroe.commit("SPECSLIST", rst.list)
        }
    }

}